package com.stylefeng.guns.rest.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 券库表
 * </p>
 *
 * @author ruiyifeng123
 * @since 2019-03-23
 */
@TableName("wz_coupon_market")
public class WzCouponMarket extends Model<WzCouponMarket> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "coupon_market_id", type = IdType.ID_WORKER)
    private Long couponMarketId;
    /**
     * 用户编号
     */
    @TableField("user_code")
    private Long userCode;
    /**
     * 周边店铺id
     */
    @TableField("adv_map_id")
    private Long advMapId;
    /**
     * 券id
     */
    @TableField("coupon_id")
    private Long couponId;
    /**
     * 券库价
     */
    @TableField("market_price")
    private Integer marketPrice;
    /**
     * 总数量
     */
    @TableField("total_number")
    private Integer totalNumber;
    /**
     * 剩余数量
     */
    @TableField("surplus_number")
    private Integer surplusNumber;
    /**
     * 一级分类
     */
    @TableField("adv_map_category_first")
    private String advMapCategoryFirst;
    /**
     * 状态：1-编辑中；2-审核中；3-审核驳回；4-审核通过；5-发布中；6-下架;7-过期；
     */
    private Integer status;
    /**
     * 是否推荐：0-否；1-是；
     */
    @TableField("is_recommend")
    private Integer isRecommend;
    /**
     * 推荐排序
     */
    private Integer sort;
    /**
     * 用此券做活动用户数
     */
    @TableField("join_number")
    private Integer joinNumber;
    /**
     * 驳回理由
     */
    @TableField("reject_remark")
    private String rejectRemark;
    /**
     * 收益
     */
    private Integer profit;
    /**
     * 开始时间
     */
    @TableField("begin_time")
    private Date beginTime;
    /**
     * 结束时间
     */
    @TableField("end_time")
    private Date endTime;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    private Integer version;


    public Long getCouponMarketId() {
        return couponMarketId;
    }

    public void setCouponMarketId(Long couponMarketId) {
        this.couponMarketId = couponMarketId;
    }

    public Long getUserCode() {
        return userCode;
    }

    public void setUserCode(Long userCode) {
        this.userCode = userCode;
    }

    public Long getAdvMapId() {
        return advMapId;
    }

    public void setAdvMapId(Long advMapId) {
        this.advMapId = advMapId;
    }

    public Long getCouponId() {
        return couponId;
    }

    public void setCouponId(Long couponId) {
        this.couponId = couponId;
    }

    public Integer getMarketPrice() {
        return marketPrice;
    }

    public void setMarketPrice(Integer marketPrice) {
        this.marketPrice = marketPrice;
    }

    public Integer getTotalNumber() {
        return totalNumber;
    }

    public void setTotalNumber(Integer totalNumber) {
        this.totalNumber = totalNumber;
    }

    public Integer getSurplusNumber() {
        return surplusNumber;
    }

    public void setSurplusNumber(Integer surplusNumber) {
        this.surplusNumber = surplusNumber;
    }

    public String getAdvMapCategoryFirst() {
        return advMapCategoryFirst;
    }

    public void setAdvMapCategoryFirst(String advMapCategoryFirst) {
        this.advMapCategoryFirst = advMapCategoryFirst;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getIsRecommend() {
        return isRecommend;
    }

    public void setIsRecommend(Integer isRecommend) {
        this.isRecommend = isRecommend;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getJoinNumber() {
        return joinNumber;
    }

    public void setJoinNumber(Integer joinNumber) {
        this.joinNumber = joinNumber;
    }

    public String getRejectRemark() {
        return rejectRemark;
    }

    public void setRejectRemark(String rejectRemark) {
        this.rejectRemark = rejectRemark;
    }

    public Integer getProfit() {
        return profit;
    }

    public void setProfit(Integer profit) {
        this.profit = profit;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    protected Serializable pkVal() {
        return this.couponMarketId;
    }

    @Override
    public String toString() {
        return "WzCouponMarket{" +
        "couponMarketId=" + couponMarketId +
        ", userCode=" + userCode +
        ", advMapId=" + advMapId +
        ", couponId=" + couponId +
        ", marketPrice=" + marketPrice +
        ", totalNumber=" + totalNumber +
        ", surplusNumber=" + surplusNumber +
        ", advMapCategoryFirst=" + advMapCategoryFirst +
        ", status=" + status +
        ", isRecommend=" + isRecommend +
        ", sort=" + sort +
        ", joinNumber=" + joinNumber +
        ", rejectRemark=" + rejectRemark +
        ", profit=" + profit +
        ", beginTime=" + beginTime +
        ", endTime=" + endTime +
        ", createTime=" + createTime +
        ", version=" + version +
        "}";
    }
}
